package com.demo.config;

import com.demo.controller.from.MovieAddMoneyFrom;
import com.demo.controller.from.MovieScoreListFrom;
import com.demo.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "movie-server")
public interface MovieFeignClient {

    @PostMapping("/movieserver/movieProduct/addMoney")
    public Result<Boolean> addMoney(@RequestBody MovieAddMoneyFrom movieAddMoneyFrom);


    @PostMapping("/movieserver/movieScore/addScore")
    public Result<Boolean> addScore(@RequestBody MovieScoreListFrom movieScoreListFrom);
}
